package org.apache.solr.ocean.core;

import org.apache.solr.core.SolrConfig;

public class OceanCategoryConfig {
  private SolrConfig solrConfig;
  private OceanConfig oceanConfig;
  private Integer docSetCacheMax;
  
  public OceanCategoryConfig(OceanConfig oceanConfig, SolrConfig solrConfig) {
    this.oceanConfig = oceanConfig;
    this.solrConfig = solrConfig;
  }
  
  public int getDocSetCacheMax(int defaultValue) {
    if (docSetCacheMax == null) return defaultValue;
    return docSetCacheMax;
  }
  
  public SolrConfig getSolrConfig() {
    return solrConfig;
  }
}
